Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix calculation of subsecond conversion in MIX or BIN mode #102

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

FRASTM
Copy link
Contributor

@FRASTM FRASTM commented Sep 29, 2023

Depending on the RTC mode, the SSR subsecond register and AlarmSSR
differ when converted to/from a value in milliseconds
Correcting the formula in GetTime, GetAlarm/StartAlarm functions.
Update description (README) for BINary only mode use with getEpoch and setAlarmEpoch

src/rtc.c Outdated Show resolved Hide resolved
src/rtc.c Outdated Show resolved Hide resolved
@FRASTM FRASTM force-pushed the fix_mix_bcd branch 2 times, most recently from 635d357 to 8d7d27c Compare October 6, 2023 06:50
@fpistm fpistm self-requested a review October 6, 2023 07:01
Depending on the RTC mode, the SSR subsecond register and AlarmSSR
differ when converted to/from a value in milliseconds
Correcting the formula in GetTime, GetAlarm/StartAlarm functions.
Clarify the use of getEpoch and setAlarmEpoch in BIN only mode.

Signed-off-by: Francois Ramu <[email protected]>
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fpistm fpistm merged commit 3ce53c4 into stm32duino:main Oct 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants